package com.ambimmort.shj.action.policybank;

/**
 * Created by Administrator on 2015/7/30.
 */

import com.ambimmort.shj.service.policybank.PolicybankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

@Controller("/action/policy/get_strategy_all_warehouse.do")
public class List {
    @Autowired
    private PolicybankService policybankService;

    /**
     *
     * @param MessageType
     * @return
     * @throws IOException
     */

    @RequestMapping("/action/policy/get_strategy_all_warehouse.do")
    @ResponseBody
    public String action_PolicybankList( HttpServletRequest request,@RequestParam("MessageType") String MessageType)  {
        System.out.println("action_PolicybankCreate-messageType::"+MessageType);
            return  policybankService.listDomain(MessageType);

    }
}
